package com.waterdrop.wlsggk.mapper;

import com.waterdrop.wlsggk.pojo.MaterialBuy;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface MaterialBuyMapper {

    public List<MaterialBuy> selectMaterialBuyList(MaterialBuy materialBuy);

    /**
     * 批量删除物料信息
     *
     * @param ids 物料id
     * @return
     */
    public int deleteWlsggkMaterialBuyByIds(Long[] ids);

    /**
     * id查询物料
     *
     * @param id
     * @return
     */
    public MaterialBuy selectwlsggkMaterialBuyById(Long id);

    /**
     * 新增物料
     *
     * @return
     */

    public int insertWlsggkMaterialBuy(List<MaterialBuy> materialBuy);

    /**
     * 修改物料
     *
     * @return
     */

    public int updateWlsggkMaterialBuy(MaterialBuy materialBuy);
}
